package trading_strategy.orders;

/**
 * Broker proxy for a single instrument
 * Created by IntelliJ IDEA.
 * User: gderoujoux
 * Date: 19 mai 2010
 * Time: 18:11:46
 * To change this template use File | Settings | File Templates.
 */
public class InstrumentOrderBroker implements IOrderSender {
    final private IInstrumentExchange exchange;

    public InstrumentOrderBroker(IInstrumentExchange exchange) {
        this.exchange = exchange;
    }

    @Override
    public void sendNewOrder(Order order) {
        exchange.onNewOrder(order);
    }

    @Override
    public void sendModifyOrder(Order order) {
        exchange.onModifyOrder(order);
    }

    @Override
    public void sendCancelOrder(Order order) {
        exchange.onCancelOrder(order);
    }
}
